package CustomUI;

import java.util.ArrayList;
import java.util.List;

import android.view.View;

public class ydOnClickLongListeners implements View.OnLongClickListener{
    List<View.OnLongClickListener> listeners;

    public ydOnClickLongListeners(){
        listeners = new ArrayList<View.OnLongClickListener>();
    }

    public void addOnClickListener(View.OnLongClickListener listener){
        listeners.add(listener);
    }

    @Override
    public boolean onLongClick(View v){
       for(View.OnLongClickListener listener : listeners){
          listener.onLongClick(v);
       }
       
       return true;
    }
}
